#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void bubble(int arr[], int sz)
{
	int i = 0;
	int j = 1;
	int a = 0;
	for (i = 0; i < sz - 1; i++)
	{
		for (j = i + 1; j <= sz - 1; j++)
		{
			if (arr[i] > arr[j])
			{
				a = arr[i];
				arr[i] = arr[j];
				arr[j] = a;
			}
		}
	}
}
int main()
{
	int arr[] = { 3,1,2,5,6,9,4,2,3,8,3,4,1 };
	int i = 0;
	int sz = sizeof(arr) / sizeof(arr[0]);
	bubble(arr,sz);
	for (i = 0; i < sz; i++)
	{
		printf("%d ", arr[i]);
	}
	return 0;
}